package org.rency.mq.activemq.jms.support;

import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.Session;

/**
 * 创建目的地对象
 *
 * @author: Created by user_rcy@163.com on 2016/10/20.
 * @version: V1.0.0
 * @since JDK 1.8
 */
public interface DestinationResolver extends org.springframework.jms.support.destination.DestinationResolver{

    /**
     * 根据连接、目的地名称、目的地类型创建目的地对象
     *
     * @param session
     * @param destinationName
     * @param destinationType
     * @return
     * @throws JMSException
     */
    Destination getDestination(Session session, String destinationName, int destinationType) throws JMSException;

}